Exact stability criteria for finite-amplitude solitons