Inelastic proton scattering at 200 to 400 MeV forMg24andSi28in a microscopic framework