Interaction of surface and internal cracks in railhead