The brachial plexus is formed by the ventral rami of which spinal nerves?