Sri Lanka imposes state of emergency amid violence