Sydney FC beat Perth to win W-League title