Heracle, Mitologie greaca