Power and energy scaling of a diode-end-pumped Nd:YLF laser through gain optimization.