Hierarchical architectures by synergy between dynamical template self-assembly and biomineralization.