Beam shaping and effective guiding in the bulk of photorefractive crystals through linear beam dynamics