Self-induced density modulations in the free expansion of Bose-Einstein condensates