Surface structures induced by ultrashort laser pulses: Formation mechanisms of ripples and grooves