Power deposition in H2 and H2N2 glow discharges