Master Equations for Perturbations of Generalised Static Black Holes with Charge in Higher Dimensions