Ground and first excited states electrostatic molecular potentials of ketene and diazomethane