Shell to cut jobs and capacity at major refinery