Spectroscopy of the type Ia supernova SN 2002er: Days-11 to+215