Method of integral transforms for calculating few-body reactions