Younis Khan's 213 runs helped Pakistan declare at 570-6 on day two of their second Test match against Australia in Abu Dhabi.