Strain distributions in quantum dots of arbitrary shape