Favor 'local' annotations over inherited ones

- Refactored AnnotationUtils to use getDeclaredAnnotation() and
  getDeclaredAnnotations() where appropriate.

- Refactored AnnotatedElementUtils to use getDeclaredAnnotations() where
  appropriate.

- AnnotatedElementUtils.getAnnotationAttributes() now traverses the
  class hierarchy manually (due to switch to getDeclaredAnnotations()).

Issue: SPR-11475