An elastic-plastic analysis of fatigue crack closure in modes I and II