Control of solid state laser dynamics by semiconductor devices