Simulating the role of molecular binding to mineral surfaces : from biomineral growth to cell attachment