Investigation on radiation generated by sub-GeV electrons in ultrashort silicon and germanium bent crystals