Australia declare at 511 for 7 after Head