Photophysics of proton transfer in hydrazides: a combined theoretical and experimental analysis towards OLED device application