A 3D computer model investigation of biofilm detachment and protection mechanisms