Theoretical investigations of classical and nonclassical structures of MH7L2 polyhydride complexes of rhenium and technetium