Theory of linearly elastic residually stressed plates