The mechanism of excimer formation: an experimental and theoretical study on the pyrene dimer.