Bomb attacks kill 16 in northwest Pakistan: officials