Black holes surrounded by generic matter distributions: Polar perturbations and energy flux | Synapse