From the Gas Phase to a Lipid Membrane Environment: DFT and MD Simulations of Structure and Dynamics of Hydrogen-Bonded Solvates of Bifunctional Heteroazaaromatic Compounds