What is the time complexity of accessing an element in an array by its index?