General model for the aqueous precipitation of rough-surface nanocrystals and application to ferrihydrite genesis