"I apologize for any inconvenience I may have caused you". Could you use this sentence in a formal letter?