Structure and relaxation effects in thin semiconducting films and quantum dots