Synthesis and degradation of surface structures by growing and non-growing Bacillus megaterium.