Theoretical modeling of chemical reactions in complex environments: The intramolecular proton transfer in aqueous malonaldehyde