New techniques for modelling reservoir-dam and foundation-dam interaction