Homogeneous and heterogeneous catalytic reduction of amides and related compounds using molecular hydrogen