Effects of iron, sulfur, and microbial activity on aerobic to anaerobic transitions in marine sediments