Feeding aond resource allocation in the mussel Mytilus edulis: evidence for time-averaged optimization