Maximally resonant potentials subject to p-norm constraints