Surfer loses most of thigh in Australian shark attack