Optimal microstructures for martensitic steels