Revealing and reducing the possible recombination loss within TiO2 compact layer by incorporating MgO layer in perovskite solar cells