Optimization Material Distribution methodology: Some electromagnetic examples