Sri Lanka declares emergency