Text this: Optical properties and limiting photocurrent of thin-film perovskite solar cells