Earnshaw reunited with Cardiff City after rejecting Forest