Functional response of mussels to bacterial challenge