Oakland A's select Vanderbilt right-hander Gray 18th overall