Detailed modelling of photon recycling: application to GaAs solar cells