Adaptation of intertidal biofilm communities is driven by metal ion and oxidative stresses