Hamilton quickest on final day of F1 testing in Bahrain