Gramian Optimization with Input-Power Constraints