Magnetic anisotropy and first-order magnetization processes in Sm(Fe1-xCox)10M2 (M= Ti, Si) compounds