The dynamics of the head of a gravity current advancing over a horizontal surface | Synapse