Power supplies and surge protection