Effects of applied stress on coherent precipitates via a discrete atom method