David Pye trial: Nick Martin raped ex-girlfriend of sniper who shot him at Perth Motorplex, Supreme Court told