Band alignment of the hybrid halide perovskites CH3NH3PbCl3, CH3NH3PbBr3 and CH3NH3PbI3