Modulation of light absorption by optical spacer in perovskite solar cells