inner workings of the ear