Static-response theory and the roton-maxon spectrum of a flattened dipolar Bose-Einstein condensate