Analytical considerations for optimal axion haloscope design