A model for the blood-brain barrier and its application in modeling metastasis to the brain