Theory of electric field-induced optical modulation in single and multiquantum well structures using a Monte Carlo approach