Adaptive Phase Locked Loops for VSC connected to weak ac systems