Ultrafast response vertical phototransistors based on hybrid perovskite