Quantum dot spontaneous emission control in a ridge waveguide