Stress singularity at the vertex of homogeneous and composite cones for different boundary conditions