In situ stress control on microcrack generation and macroscopic extensional fracture in exhuming bedrock