Valuation formulae for window barrier options