Structural and functional characteristics of bacterial biofilms