Coherent precipitation and age hardening mechanisms in ferritic and martensitic alloys