What causes melasma during sun exposure — and how to treat it