A simple method for calculating strain distributions in quantum dot structures