Wireless Communication Aided by Intelligent Reflecting Surface: Active or Passive?