Diagnostics and modeling of polymer electrolyte membrane water electrolysers