The Phase A study of the ESA M4 mission candidate ARIEL