Regioselective synthesis of acylpyrroles