Universal enveloping algebras of semi-direct products of Lie algebras and their quantum analogues