An IBM-like numerical approach for mass transfer across deformable and semipermeable membranes in fluid flows