Flower discrimination by pollinators in a dynamic chemical environment