Interior search algorithm for optimal power flow with non-smooth cost functions