Nuclear matter and neutron-star properties calculated with the Skyrme interaction