Noncyclic mappings and best proximity pair results in Hilbert and uniformly convex Banach spaces