Gravar-mail: A pebble accretion model for the formation of the terrestrial planets in the Solar System