Modelling the response function of enzyme-based optical glucose-sensing capsules