primary secondary and tertiary rocks and minerals