Ex-two-time world champion Anthony Joshua recovered from two knockdowns to KO Kristian Prenga in the second round of a non-title heavyweight fight.