Linear resolutions of powers and products