SC tells states to declare class 12 board exam results by 31 July