Micromagnetism and magnetization reversal of embedded ferromagnetic elements