Stress intensity factor for a cracked specimen under compression