A three-dimensional stress recovery procedure for composite materials