Optimizing laser produced plasmas for efficient extreme ultraviolet and soft X-ray light sources