England held their nerve to beat India by four runs and qualify for the Women’s Cricket World Cup semi-finals.