Optomechanical self-structuring in a cold atomic gas