Initial conditions for SPH codes