Modeling and analysis of layered stationary anaerobic granular biofilms.