refactor: factor out voltage phase line to line computation