Karnataka on alert after threat to carry out blasts on trains