Leicester came from behind twice to earn a 5-3 win over Bolton in a thriller at the King Power Stadium in the Sky Bet Championship.