A semi-analytic approach for SPH modelling of solid boundaries