what is a ear infection and how is it created