Computational model for protein-mediated biomineralization of the diatom frustule