Ice-sheet elevation changes caused by variations of the firn