Three-dimensional computer model for simulating realistic solid-state lasers.