Stripe configuration of the charge distribution in layered cuprates