Anthony Joshua has "been through a lot of pain" in his quest to become a three-time heavyweight world champion.