Optimized interferometry with Gaussian states