Alon-Boppana-type bounds for weighted graphs