Fault location in radial and meshed networks containing distributed energy resources (DERs) and high-voltage direct current (HVDC) lines