Boston Herald files for bankruptcy; company to be sold to GateHouse Media