Assessing the significance of local sequence homologies