Synchrotron and optical probing of mixed lead halide perovskites for photovoltaics